var express = require('express');
var router = express.Router();
var models=require('../../models/models')

/**
 * Created by on 2016/8/18.
 */
router.get('/:Uid',(req, res)=>{
  if (!req.params.Uid)return res.status(404).send('Not Found')
  models.getModel('redismodel').getUsersInform(req.params.Uid)
        .then(result=>res.status(200).json({'code':200,'msg':'success','result':{user:result}}))
        .catch(err=>res.status(500).json('server error'))
})


module.exports = router;

 
